###跳过类下的所有测试函数


import pytest
import sys

version_judge = pytest.mark.skipif(
    sys.version_info < (4, 0), reason="版本4.0以下就跳过执行"
)

#运行结果，类TestDemo下的2个测试方法都会被跳过。
@version_judge
class TestDemo():

    def test_the_unknown2(self):
        ...

    def test_the_unknown3(self):
        ...

def test_the_unknown1():
    ...

if __name__ == "__main__":
    pytest.main(["-s", '-r' "test6.py"])